# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding field 'Journal.free'
        db.add_column('washing_journal', 'free', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)

        # Adding field 'Journal.family'
        db.add_column('washing_journal', 'family', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)


    def backwards(self, orm):
        
        # Deleting field 'Journal.free'
        db.delete_column('washing_journal', 'free')

        # Deleting field 'Journal.family'
        db.delete_column('washing_journal', 'family')


    models = {
        'this_site.section': {
            'Meta': {'object_name': 'Section'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        },
        'this_site.staff': {
            'Meta': {'ordering': "['fio']", 'object_name': 'Staff'},
            'fio': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'post': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'section': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['this_site.Section']", 'symmetrical': 'False'})
        },
        'washing.autotype': {
            'Meta': {'object_name': 'AutoType'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        },
        'washing.client': {
            'Meta': {'object_name': 'Client'},
            'auto_number': ('django.db.models.fields.CharField', [], {'max_length': '6'}),
            'auto_region': ('django.db.models.fields.IntegerField', [], {}),
            'fio': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '25'})
        },
        'washing.journal': {
            'Meta': {'object_name': 'Journal'},
            'autotype': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.AutoType']"}),
            'client': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.Client']"}),
            'datatime': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 3, 6, 22, 15, 29, 996000)'}),
            'family': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'free': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'service': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['washing.Service']", 'symmetrical': 'False'}),
            'staff': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['this_site.Staff']", 'symmetrical': 'False'}),
            'sum': ('django.db.models.fields.FloatField', [], {})
        },
        'washing.price': {
            'Meta': {'object_name': 'Price'},
            'autotype': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.AutoType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.Service']"}),
            'sum': ('django.db.models.fields.FloatField', [], {})
        },
        'washing.service': {
            'Meta': {'object_name': 'Service'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        }
    }

    complete_apps = ['washing']
